home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-07-28 | 4.5 KB | 134 lines | [TEXT/MPS ] |
- // ==========================================================================
- // LDAP Other Record Templates
- //
-
- #define kOtherAspectName "SKEL•Other Aspect"
- #define kOtherInfoPageName "SKEL•Other InfoPage"
-
- #define kldapOtherRecTypeBody "ldap Other"
-
- #define kldapPrCommonName kSAMFirstDevProperty+0
- #define kldapPrAlsoKnownAs kSAMFirstDevProperty+1
-
- // --------------------------------------------------------------------------
- // LDAP Other Record • Aspect Template
-
- resource 'deta' (ldapOtherAspectID, kOtherAspectName, purgeable) {
- 0, dropCheckAlways, isMainAspect
- };
-
- resource 'rstr' (ldapOtherAspectID+kDETTemplateName, "SKEL•Other Aspect Name", purgeable) {
- kOtherAspectName
- };
-
- resource 'rstr' (ldapOtherAspectID+kDETRecordType, "SKEL•Other Aspect Record Type", purgeable) {
- kldapOtherRecTypeBody // "ldap Other"
- };
-
- resource 'rst#' (ldapOtherAspectID + kDETAspectCategory, "SKEL•Other Aspect Category", purgeable) {
- {kDETCategoryMisc, kDETCategoryAddressItems}
- };
-
- resource 'rstr' (ldapOtherAspectID + kDETAspectKind, "SKEL•Other Aspect Kind", purgeable) {
- "X.500 Other"
- };
-
- resource 'rstr' (ldapOtherAspectID + kDETAspectWhatIs, "SKEL•Other Item Balloon", purgeable) {
- "An unknown X.500 type\n\n"
- "There are several X.500 types not yet supported. This is one of them."
- };
-
- include "SKEL•CSAM.ICON" 'ICN#' (132) as 'ICN#' (ldapOtherAspectID + kDETAspectMainBitmap, "SKEL•Other Aspect", purgeable);
- include "SKEL•CSAM.ICON" 'ics#' (132) as 'ics#' (ldapOtherAspectID + kDETAspectMainBitmap, "SKEL•Other Aspect", purgeable);
- include "SKEL•CSAM.ICON" 'icl8' (132) as 'icl8' (ldapOtherAspectID + kDETAspectMainBitmap, "SKEL•Other Aspect", purgeable);
- include "SKEL•CSAM.ICON" 'ics8' (132) as 'ics8' (ldapOtherAspectID + kDETAspectMainBitmap, "SKEL•Other Aspect", purgeable);
- include "SKEL•CSAM.ICON" 'icl4' (132) as 'icl4' (ldapOtherAspectID + kDETAspectMainBitmap, "SKEL•Other Aspect", purgeable);
- include "SKEL•CSAM.ICON" 'ics4' (132) as 'ics4' (ldapOtherAspectID + kDETAspectMainBitmap, "SKEL•Other Aspect", purgeable);
-
- include "SKEL•CSAM.ICON" 'SICN' (132) as 'SICN' (ldapOtherAspectID + kDETAspectMainBitmap, "SKEL•Other Aspect", purgeable);
-
- resource 'dett' (ldapOtherAspectID+kDETAspectLookup, "SKEL•Other Aspect LookUp", purgeable) {
- {
- { "SkelName" }, typeRString,
- useForInput, useForOutput, notInSublist, isNotAlias, isNotRecordRef,
- { 'rstr', kldapPrCommonName, 0 },
-
- { "SkelString" }, typeRString,
- useForInput, useForOutput, notInSublist, isNotAlias, isNotRecordRef,
- { 'rstr', kldapPrAlsoKnownAs, 0 }
- }
- };
-
- resource 'rstr' (ldapOtherAspectID+kldapPrCommonName, "SKEL•Other", purgeable) {
- "<Enter Common Name>"
- };
-
- resource 'rstr' (ldapOtherAspectID+kldapPrAlsoKnownAs, "SKEL•Other", purgeable) {
- "<Enter Other Names>"
- };
-
- //eject
- // --------------------------------------------------------------------------
- // LDAP Other Record • InfoPage Template
-
- resource 'deti' (ldapOtherInfoPageID, "SKEL•Other InfoPage", purgeable) {
- 1000, // sort order
- {0, 0, 0, 0}, // sublist rectangle
- noSelectFirstText,
- { kDETNoProperty, kDETNoProperty, ldapOtherInfoPageID }, // header view lists
- { } // subview view lists
- };
-
- resource 'rstr' (ldapOtherInfoPageID+kDETTemplateName, "SKEL•Other InfoPage", purgeable) {
- kOtherInfoPageName
- };
-
- resource 'rstr' (ldapOtherInfoPageID+kDETRecordType, "SKEL•Other InfoPage", purgeable) {
- kldapOtherRecTypeBody // "ldap Other"
- };
-
- resource 'rstr' (ldapOtherInfoPageID+kDETInfoPageName, "SKEL•Other InfoPage", purgeable) {
- "X.500 Other Information"
- };
-
- resource 'rstr' (ldapOtherInfoPageID+kDETInfoPageMainViewAspect, "SKEL•Other InfoPage", purgeable) {
- kOtherAspectName
- };
-
- #define k1L 42
- #define k1W 90
- #define k1R k1L+k1W
-
- #define k2L k1R+2
- #define k2W 227
- #define k2R k2L+k2W
-
- #define ksH 18
- #define keH 17
-
- resource 'detv' (ldapOtherInfoPageID, "SKEL•Other InfoPage", purgeable) {
- {
- kDETSubpageIconRect, kDETNoFlags, kDETAspectMainBitmap,
- Bitmap
- { kDETLargeIcon },
-
- #define k1T 38
- {k1T, k1L, k1T+ksH, k1R}, kDETNoFlags, kDETNoProperty,
- StaticTextFromView
- { kDETApplicationFont, 10, kDETRight, kDETBold, "commonName:" },
-
- {k1T-2, k2L, k1T-2+keH, k2R}, kDETEnabled, kldapPrCommonName,
- EditText
- { kDETApplicationFont, 10, kDETLeft, kDETNormal },
-
- #define k2T k1T+26
- {k2T, k1L, k2T+ksH, k1R}, kDETNoFlags, kDETNoProperty,
- StaticTextFromView
- { kDETApplicationFont, 10, kDETRight, kDETBold, "otherNames:" },
-
- {k2T-2, k2L, k2T-2+keH, k2R}, kDETEnabled, kldapPrAlsoKnownAs,
- EditText
- { kDETApplicationFont, 10, kDETLeft, kDETNormal }
- }
- };
-